<?php

/**
 * Subclass for representing a row from the 'semaine' table.
 *
 * 
 *
 * @package lib.model
 */ 
class Semaine extends BaseSemaine
{

    /**
     *
     * @return Salarie
     */
    public function getSalarie()
    {
	return SalariePeer::retrieveByPK($this->getWorkerId());
    }

    public function getDelta() {
	return $this->getTotal() - $this->getSalarie()->getNbHeuresSemaine()*60 ;
    }
}
